package org.example.main.service;

import org.example.main.entity.RentalApplication;
import java.util.List;

public interface RentalApplicationService {
    int apply(RentalApplication application);
    int updateStatus(long applicationId, String status);
    int delete(long applicationId);
    RentalApplication findById(long applicationId);
    List<RentalApplication> findByTenantId(long tenantId);
    List<RentalApplication> findByHouseId(long houseId);
    RentalApplication findByTenantIdAndHouseIdAndType(long tenantId, long houseId, String type);
    List<RentalApplication> findAll();
}
